<%@ page language="java" contentType="text/html; charset=utf-8" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.common.DateUtil" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%
    JSONObject jsonData = new JSONObject();
    rs.executeQuery( "select t1.id from uf_xzkm t1 right join uf_xzkm t2 on t1.id = t2.sjkm \n" +
            "where t1.fydm in ('KA0107','KB04Z1','KB04Z3','KB0907','KB1004','KD03Z1','KD03Z3','KF0205','KF03Z1','KF03Z3','KF04Z1','KF04Z3','KI01Z1','KI01Z3','KJ01Z1','KJ01Z3','KJ02Z1'\t,'KJ02Z3','KJ03Z1','KJ03Z3','KJ04Z1','KJ04Z3','KJ05Z1','KJ05Z3','KJ06Z1','KJ06Z3','KB04Z2','KI01Z2','KJ01Z2','KJ02Z2','KJ04Z2','KJ05Z2','KJ06Z2','KA0100','KB0400','KB0900','KB1000','KD0300','KF0200','KF0300','KF0400','KI0100','KJ0100','KJ0200','KJ0300','KJ0400','KJ0500','KJ0600','KA0000','KB0000','KD0000','KF0000','KI0000','KJ0000','KB0506','KB0500')\n" +
            "group by t1.id" );
    String ids = "";
    while (rs.next()) {
        String id = Util.null2String( rs.getString( "id" ) );
        ids += "".equals( ids ) ? id : "," + id;
    }

    jsonData.put( "kms", ids );
    out.print( jsonData.toJSONString() );
    bb.writeLog( "getFlowWaterNum_Ajax=" + jsonData.toJSONString() );
%>
